import { createApp} from 'vue'
import App from './App.vue'
import router from "@/router";
import {store, key} from "@/store";
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
// 导入字体图标库
import '@/assets/font/iconfont.css'
// 导入全局样式表
import '@/assets/css/global.css'
import 'nprogress/nprogress.css'


const app = createApp(App)
// app.config.globalProperties.$message = ElMessage
// 注册全局组件
// Object.keys(Icons).forEach((key)=>{
//     app.component(key, Icons[key as keyof typeof Icons])
// })
// 挂载到app
app.use(router).use(store, key).use(ElementPlus).mount('#app')
